<table class="custom-table" cellpadding="0" cellspacing="0">
	<thead>
	<tr>
		<th class="th05">名称</th>
		<th class="th04">类目</th>
		<th class="th03">供应商</th>
 		<th class="th02">营业执照</th>
		<th class="th01">食品流通许可证</th>
		<th class="th05">全国工业产品生产许可证</th>
		<th class="th04">生产日期</th>
		<th class="th03">生产商/地</th>
		<th class="th02">批次</th>
		<th class="th01">保质期</th>
		<th class="th05">图片展示</th>
		<th class="th05">检测报告</th>
		<th class="th04">其它</th>
	</tr>
	</thead>
	<tbody>
	<?php foreach ($this->paginator as $v) : ?>
		<tr>
			<td><?php echo $this->escapeHtml($v->material_name);?></td>
			<td><?php echo $this->escapeHtml($v->material_category_name);?></td>
			<td><?php echo $this->escapeHtml($v->material_supplier);?></td>
			
			
			<td><img src="<?php echo $this->escapeHtml($v->material_supplier_img1);?>" width="30" height="30" data-content="<?php echo $this->escapeHtml($v->material_supplier_img1);?>"></td>
			<td><img src="<?php echo $this->escapeHtml($v->material_supplier_img2);?>" width="30" height="30" data-content="<?php echo $this->escapeHtml($v->material_supplier_img2);?>"></td>
			<td><img src="<?php echo $this->escapeHtml($v->material_supplier_img3);?>" width="30" height="30" data-content="<?php echo $this->escapeHtml($v->material_supplier_img3);?>"></td>
			<td><?php echo $this->escapeHtml($v->material_production_date);?></td>
			<td><?php echo $this->escapeHtml($v->material_yieldly);?></td>
			<td><?php echo $this->escapeHtml($v->material_batch_no);?></td>
			<td><?php echo $this->escapeHtml($v->material_expiry_date);?></td>
			<td>
			<?php 
			
			    $material_img = json_decode($v->material_img, true);
			    if(is_array($material_img)){
			    foreach ($material_img as $vs){
			        //rel="group"  data-fancybox-group="button" thumb gallery
			        echo '<a class="fancybox"  data-fancybox-group="gallery" href="'.$vs.'"><img src="'.$vs.'" alt="" width="30" height="30" data-content="'.$vs.'"/></a>"';
			    }
			}
			?>
			</td>
			<!-- <td><img src="<?php echo $this->escapeHtml($v->image);?>" width="30" height="30" data-content="<?php echo $this->escapeHtml($v->image);?>"></td> -->

			<td><a class="fancybox"  data-fancybox-group="gallery" href="<?php echo $this->escapeHtml($v->image);?>"><img src="<?php echo $this->escapeHtml($v->image);?>" alt="" width="30" height="30" data-content="<?php echo $this->escapeHtml($v->image);?>"/></a></td>
			
			<td><?php echo $this->escapeHtml($v->material_other);?></td>
		</tr>
			<tr id="comm_show_<?php echo $this->escapeHtml($v->org_id);?>" style="display:none;background:#ccc" colspan="5">
		</tr>
	<?php endforeach; ?>
	</tbody>
</table>
<?php
     echo $this->paginationControl(
         $this->paginator,
         'sliding',
         'partial/ajax-paginator.phtml',
         array(
         )
     );
 ?>